/**
 * 
 */
package com.et114.modules.products.proservices;

import java.util.List;

import com.et114.core.dao.impl.BaseDAOImpl;

/*
 * @author guanhw
 */
public class ProServiceDao extends BaseDAOImpl {
	@ SuppressWarnings ( "unchecked" )
	public List< ProService > getProServices( ProService vo ) throws Exception {
		return queryList ( vo , "getProservice" ) ;
	}
	
	
	@ SuppressWarnings ( "unchecked" )
	public List< ProService > getProserviceTypeByPro( ProService vo ) throws Exception { 
		return queryList ( vo , "getProserviceTypeByPro" ) ;
	}
	
	public ProService getProServiceById( Long id ) throws Exception {
		return ( ProService ) load( id , "getProserviceById" ) ; 
	}
	
	public Long saveProService( ProService vo ) throws Exception {
		return ( Long  ) insert( vo , "insertProservice" ) ;
	}
	
	public void updateProService( ProService vo ) throws Exception {
		update( vo , "updateProservice" ) ; 
	}
	
	public void removceProService( Long id ) throws Exception {
		delete( id , "removeProservice" ) ; 
	}
	
	public void removeProserviceByPro( ProService vo ) throws Exception { 
		delete( vo , "removeProserviceByPro" ) ;
	}
	
	public Long countProService( ProService vo ) throws Exception {
		return ( Long  ) insert( vo , "countgetProservice" ) ;
	}	
	
	@ SuppressWarnings ( "unchecked" )
	public List< ProService > getProservice4View( ProService vo ) throws Exception {
		return queryList ( vo , "getProservice4View" ) ;
	}
	
	
}
